package com.atmilan.quartz.model.entity.leam;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * Leam商品映射对象
 * @Description: 
 * @author daigb
 * @date 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class LeamProduct extends Model<LeamProduct> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * style_code
     */
    private String styleCode;

    /**
     * fabric_code
     */
    private String fabricCode;

    /**
     * color_code
     */
    private String colorCode;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 季节+年份的缩写
     */
    private String season;

    /**
     * 秋季/冬季/春季/夏季
     */
    private String seasonType;

    /**
     * Men or Women
     */
    private String department;

    /**
     * 分类
     */
    private String category;

    /**
     * 二级分类
     */
    private String subcategory;

    /**
     * 颜色
     */
    private String color;

    /**
     * 平台展示原价（欧元）
     */
    private BigDecimal defaultPrice;

    /**
     * 平台展示成本价（欧元）
     */
    private BigDecimal price;

    /**
     * discount percentage applied
     */
    private Integer sale;

    /**
     * madein
     */
    private String madein;

    /**
     * 成分/面料
     */
    private String composition;

    /**
     * ATTENTION! incomplete data
     */
    private String nomenclature;

    /**
     * 描述
     */
    private String description;

    /**
     * pic1
     */
    private String pic1;

    /**
     * pic2
     */
    private String pic2;

    /**
     * pic3
     */
    private String pic3;

    /**
     * pic4
     */
    private String pic4;

    /**
     * pic5
     */
    private String pic5;

    /**
     * 创建时间
     */
    private Date creatTime;

    /**
     * 最后拉取时间
     */
    private Date lastPushTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
